/**
 * Created with IntelliJ IDEA.
 * User: amberhoule
 * Date: 13-12-22
 * Time: 1:20 PM
 * To change this template use File | Settings | File Templates.
 */
import java.util.Arrays;

public class TriangleExercises {
    public static void main(String args[]){
        //DiamondExercises.isoscelesTriangle(4);
        //DiamondExercises.diamond(3);
        //FizzBuzz.fizzBuzz();
        System.out.println(PrimeFactors.generate(30));
        //DiamondExercises.diamondWithName(3);
    }

    public static void horizontalLine(int n){
        String horizontal = "";
        int i = 0;
        while(i < n){
            horizontal = horizontal + "*";
            i++;
        }
        System.out.println(horizontal);
    }

    public static void verticalLine(int n){
        int i = 0;
        while(i < n){
            System.out.println("*");
            i++;
        }
    }

    public static void rightTriangle(int n){
        int i = 0;
        String stars = "*";
        while(i < n) {
            System.out.println(stars);
            stars += "*";
            i++;
        }
    }
//    public static void isoscelesTriangle(int n){
//        String center = "*";
//        String left = " ";
//        String right = " ";
//        char[] leftArray = new char[n];
//        char[] rightArray = new char[n];
//
//        int i = 0;
//
//        while(i < n ) {
//            leftArray[i] = ' ';
//            rightArray[i] = ' ';
//            i++;
//        }
//
//        for(int j = 0; j < n; j++){
//            left = String.valueOf(leftArray);
//            right = String.valueOf(rightArray);
//            System.out.println( left + center + right );
//            leftArray[(n-1)-j] = '*';
//            rightArray[j] = '*';
//        }
//
//    }

}
